package de.pyranja.storage.support;

import java.io.File;

/**
 * Translates a BlobID to the {@link File} where the data is stored. For any
 * supplied {@link BlobID} there is exactly one file associated with it and
 * different ids will never yield the same file.
 * @author Chris Borckholder
 */
public interface BlobToFile {
	
	/**
	 * Resolves the id to its matching file. The returned file may not exist yet.
	 * @param id of the blob
	 * @return file where data must reside if it exists
	 */
	File resolve(String id);
}